import java.util.Scanner;


public class TextModifier {
	private static Scanner scn;

    public static void main(String[] args) {
            String s;
            scn = new Scanner(System.in);
            System.out.print("Vvedite stroku ");
            s = scn.nextLine();
            for (int i = 0; i < s.length(); i++) {
                    if (s.charAt(i) == '+' | s.charAt(i) == '-') {
                    	String l = s.substring(i, i+1);
                        System.out.print(l + l);
                    }
                    else if (Character.isDigit(s.charAt(i))) {
                            System.out.print("");
                    }
                    else {
                    	System.out.print(s.charAt(i));
                    }                   
                    
            }
            
    }
}
